$(function(){

    $('#item').autocomplete('data.php?mode=sql', {
        width: 150,
        max: 5
    });
    $('#itemLocation').autocomplete('data.php?mode=location', {
        width: 150,
        max: 5
    });
    
    $('.transactionInClass').autocomplete('data.php?mode=transaction', {
        width: 150,
        max: 5
    });

});